import { getAreaObj, uploadType, regularRule } from '@/utils/util'

const isVerify = true
export const BaseFormConfig = {
	label: '基础信息',
	prop: 'base0',
	inline: false,
	showBtn: false,
	labelPosition: 'top',
	column: [
		{
			label: '设施名称',
			prop: 'soleValue',
			type: 'text',
			maxlength: '50',
			showWordLimit: true,
			editDisabled: true,
			span: 8,
			rules: isVerify ? [{ required: 'true', message: '请输入设施唯一值' }] : [],
		},
		// {
		// 	label: '大类',
		// 	prop: 'largeCategory',
		// 	propName: 'largeCategoryLabel',
		// 	type: 'remoteSelect',
		// 	api: 'getDictItemList',
		// 	code: 'FACILITY_BROAD',
		// 	filterKey: 'value',
		// 	multiple: false,
		// 	span: 8,
		// 	changeField: true,
		// 	rules: isVerify ? [{ required: 'true', message: '请选择设施大类' }] : [],
		// },
		{
			label: '设施类型',
			prop: 'type',
			propName: 'typeLabel',
			type: 'remoteSelect',
			span: 8,
			code: 'FACILITY_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: true,
			changeField: true,
			rules: isVerify ? [{ required: 'true', message: '请选择设施类型' }] : [],
			control: (_, model) => {
				return {
					dailyDeliveryOfFoodAid: {
						display: model.type?.includes('10'),
					},
					centralKitchenStoveType: {
						display: model.type?.includes('4'),
					},
					isInstallGasLeakageSafeDevice: {
						display: model.type?.includes('4'),
					},
				}
			},
		},
		{
			label: '日常配送助餐点',
			prop: 'dailyDeliveryOfFoodAid',
			type: 'select',
			span: 24,
			multiple: true,
			allowCreate: true,
			filterable: true,
			changeField: false,
			noDataText: '请输入日常配送助餐点名称',
		},
		{
			label: '中心厨房灶具类型',
			prop: 'centralKitchenStoveType',
			propName: 'centralKitchenStoveTypeLabel',
			type: 'remoteSelect',
			span: 8,
			code: 'CENTRAL_KITCHEN_STOVE_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
		},
		{
			label: '使用瓶装液化气、管道天然气单位是否已安装离地不超过20CM能够正常运行的燃气泄漏安全保护装置',
			prop: 'isInstallGasLeakageSafeDevice',
			propName: 'isInstallGasLeakageSafeDeviceLabel',
			type: 'remoteSelect',
			api: 'getDictItemList',
			code: 'COMMON_FLAG',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
		},
		{
			label: '是否独立占地',
			prop: 'isIndependentLandOccupation',
			propName: 'isIndependentLandOccupationLabel',
			type: 'remoteSelect',
			api: 'getDictItemList',
			code: 'COMMON_FLAG',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
			rules: isVerify ? [{ required: 'true', message: '请选择是否独立占地' }] : [],
		},
		{
			label: '场所性质',
			prop: 'property',
			propName: 'propertyLabel',
			type: 'remoteSelect',
			span: 8,
			code: 'FACILITIES_LOCATION_QUALITY',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			rules: isVerify ? [{ required: 'true', message: '请选择场所性质' }] : [],
		},
		{
			label: '兴办主体',
			prop: 'subject',
			propName: 'subjectLabel',
			type: 'remoteSelect',
			span: 8,
			code: 'FACILITIES_ESTABLISHMENT_MAINBODY',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			rules: isVerify ? [{ required: 'true', message: '请选择兴办主体' }] : [],
		},
		{
			label: '所处位置类型',
			prop: 'positionType',
			propName: 'positionTypeLabel',
			type: 'remoteSelect',
			code: 'FACILITY_LOCATION_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
			rules: isVerify ? [{ required: true, message: '请选择所处位置类型' }] : [],
		},
		{
			label: '所在地区',
			prop: 'areas',
			propName: 'areas_name',
			type: 'AplidAreaSelect',
			span: 8,
			changeField: true,
			rules: isVerify ? [{ required: true, message: '请选择所在地区' }] : [],
		},
		{
			label: '设施详细地址',
			prop: 'address',
			maxlength: '140',
			showWordLimit: true,
			type: 'textarea',
			changeField: true,
			autosize: {
				minRows: 1,
			},
			span: 8,
			rules: isVerify ? [{ required: true, message: '请选择所处位置类型' }] : [],
		},
		// {
		// 	label: '设施名称',
		// 	prop: 'name',
		// 	maxlength: '50',
		// 	showWordLimit: true,
		// 	type: 'text',
		// 	changeField: true,
		// 	rules: isVerify ? [{ required: true, message: '请填写设施名称' }] : [],
		// 	span: 8,
		// },
		{
			label: '负责人姓名',
			prop: 'personName',
			maxlength: '20',
			showWordLimit: true,
			type: 'text',
			changeField: true,
			span: 8,
			rules: isVerify ? [{ required: true, message: '请填写负责人姓名' }] : [],
		},
		{
			label: '负责人联系方式',
			prop: 'personTelephone',
			maxlength: '11',
			showWordLimit: true,
			type: 'tel',
			changeField: true,
			span: 8,
			rules: isVerify
				? [
						{ required: true, message: '请填写负责人联系方式' },
						{ pattern: regularRule.phone, message: '请输入正确的负责人联系方式' },
				  ]
				: [],
		},
		{
			label: '负责人证件类型',
			prop: 'personCertificateType',
			propName: 'personCertificateTypeLabel',
			type: 'remoteSelect',
			api: 'getDictItemList',
			code: 'ID_CARD_TYPE',
			filterKey: 'value',
			multiple: false,
			span: 8,
			changeField: false,
		},
		{
			label: '负责人证件证号',
			prop: 'personIdCard',
			type: 'input',
			changeField: false,
			span: 8,
		},
		{
			label: '负责人学历',
			prop: 'personEducation',
			propName: 'personEducationLabel',
			type: 'remoteSelect',
			api: 'getDictItemList',
			code: 'EDUCATION',
			filterKey: 'value',
			multiple: false,
			span: 8,
			changeField: false,
		},

		{
			label: '等级',
			prop: 'standard',
			propName: 'standardLabel',
			type: 'remoteSelect',
			code: 'ORG_LEVEL',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
			rules: isVerify ? [{ required: true, message: '请填写设施等级' }] : [],
		},
		{
			label: '等级评定日期',
			prop: 'standardTime',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			span: 8,
			changeField: true,
		},
		{
			label: '服务范围',
			prop: 'serviceScope',
			type: 'text',
			maxlength: '500',
			showWordLimit: true,
			span: 8,
			changeField: true,
		},
		{
			label: '施工状态',
			prop: 'constructionStatus',
			propName: 'constructionStatusLabel',
			type: 'remoteSelect',
			code: 'CONSTRUCTION_STATUS',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '营业状态',
			prop: 'state',
			propName: 'stateLabel',
			type: 'remoteSelect',
			code: 'BUSINESS_STATUS',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
		},
		{
			label: '营业时间',
			prop: 'stateTime',
			type: 'input',
			placeholder: '例：周一至周五 6:00-19:00',
			span: 8,
		},
		{
			label: '图片介绍',
			prop: 'pictureIntroduction',
			type: 'upload',
			labelPosition: 'top',
			listType: 'picture-card',
			showFileList: true,
			limit: 4,
			multiple: false,
			span: 24,
		},
		{
			label: '文字介绍',
			labelPosition: 'top',
			prop: 'introduce',
			showWordLimit: true,
			type: 'textarea',
			height: '20rem',
			rules: [{ required: true, message: '请输入文字介绍' }],
			span: 24,
		},
		// {
		// 	label: '介绍',
		// 	prop: 'introduce',
		// 	maxlength: '1000',
		// 	showWordLimit: true,
		// 	type: 'textarea',
		// 	autosize: {
		// 		minRows: 1,
		// 	},
		// 	span: 24,
		// 	rules: isVerify ? [{ required: true, message: '请填写介绍' }] : [],
		// },
		{
			label: '备注',
			prop: 'note',
			maxlength: '1000',
			showWordLimit: true,
			type: 'textarea',
			span: 8,
			autosize: {
				minRows: 1,
			},
		},
		{
			label: '备案日期',
			prop: 'recordFilingDate',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			changeField: true,
			span: 8,
		},
		{
			label: '备案单位',
			prop: 'filingUnit',
			maxlength: '120',
			showWordLimit: true,
			type: 'text',
			span: 8,
		},
		{
			label: '备案材料',
			prop: 'filingMaterials',
			type: 'upload',
			fileType: uploadType.fileMetaType,
			listType: 'text',
			labelPosition: 'top',
			showFileList: true,
			limit: 9,
			multiple: true,
			span: 24,
		},
		{
			label: '是否为社会力量运营',
			prop: 'societyOperation',
			propName: 'societyOperationLabel',
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
			changeField: true,
			rules: isVerify ? [{ required: true, message: '请选择是否为社会力量运营' }] : [],
		},
		// {
		// 	label: '运营单位名称',
		// 	prop: 'unitName',
		// 	type: 'text',
		// 	maxlength: '50',
		// 	showWordLimit: true,
		// 	span: 8,
		// 	changeField: true,
		// 	rules: isVerify ? [{ required: true, message: '请填写运营单位名称' }] : [],
		// },
		{
			label: '运营单位名称',
			prop: 'unitNameCreditCode',
			propName: 'unitName',
			type: 'autoSelect',
			api: 'dpServiceOrgHome_page',
			filterKey: 'uniqueValue',
			filterLabel: 'orgHomeName',
			multiple: false,
			changeField: true,
			paramsObj: {
				isWithAuth:0
			},
			rules: [{ required: true, message: '请选择运营单位' }],
			span: 8,
			change: (item, form, value) => {
				if (item.creditCode) form.creditCode = item.creditCode
			},
		},
		{
			label: '运营统一社会信用代码',
			prop: 'creditCode',
			maxlength: '18',
			showWordLimit: true,
			type: 'text',
			changeField: true,
			disabled: true,
			rules: isVerify
				? [
						{ required: true, message: '请输入统一社会信用代码' },
						{ pattern: regularRule.code, message: '请输入正确的运营统一社会信用代码' },
				  ]
				: [],
			span: 8,
		},
		{
			label: '门头照',
			prop: 'doorHead',
			type: 'upload',
			labelPosition: 'top',
			showFileList: false,
			limit: 1,
			multiple: false,
			span: 8,
			rules: isVerify ? [{ required: true, message: '请填入门头照' }] : [],
		},
		{
			label: '建筑面积',
			prop: 'floorArea',
			type: 'input',
			append: '平方米',
			isNum: true,
			span: 8,
			rules: [{ validator: regularRule.number, message: '请输入正确的数量' }],
		},
		{
			label: '占地面积',
			prop: 'coverArea',
			type: 'input',
			append: '平方米',
			isNum: true,
			span: 8,
			rules: [{ validator: regularRule.number, message: '请输入正确的数量' }],
		},
	],
}

export const ExtendFormConfig = {
	label: '扩展信息',
	prop: 'base1',
	inline: false,
	showBtn: false,
	labelPosition: 'top',
	column: [
		{
			type: 'DividerHtml',
			custome: 'divider',
			position: 'center',
			labelPosition: 'top',
			modelValue: '床位及收费信息',
			span: 24,
		},
		{
			type: 'DividerHtml',
			modelValue: '床位数量',
			position: 'center',
			labelPosition: 'top',
			span: 24,
		},
		{
			label: '床位总数量',
			prop: 'bedNumber',
			type: 'input',
			append: '张',
			isNum: true,
			changeField: true,
			span: 8,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		},
		{
			label: '备案床位数量',
			prop: 'recordNumber',
			type: 'input',
			append: '张',
			isNum: true,
			changeField: true,
			span: 8,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		},
		{
			label: '空闲床位数量',
			prop: 'idleNumber',
			append: '张',
			isNum: true,
			changeField: true,
			type: 'input',
			span: 8,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		},
		// {
		// 	label: '护理型床位数量',
		// 	prop: 'nursingNumber',
		// 	append: '张',
		// 	changeField: true,
		// 	isNum: true,
		// 	type: 'input',
		// 	span: 8,
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '空闲护理床位数量',
		// 	prop: 'idleNursingNumber',
		// 	append: '张',
		// 	changeField: true,
		// 	isNum: true,
		// 	type: 'input',
		// 	span: 8,
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },

		{
			type: 'DividerHtml',
			modelValue: '收费标准',
			position: 'center',
			labelPosition: 'top',
			span: 24,
		},
		{
			label: '护理型床位收费标准',
			prop: 'nursingStandard',
			type: 'text',
			maxlength: '140',
			showWordLimit: true,
			span: 8,
		},
		{
			label: '全托床位数量',
			prop: 'trusteeshipNumber',
			type: 'input',
			append: '张',
			isNum: true,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 8,
		},

		{
			label: '公益性兜底床位数',
			prop: 'publicWelfareBottomUpBedNum',
			type: 'input',
			append: '张',
			isNum: true,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 8,
		},
		{
			label: '日间照料床位数',
			prop: 'daytimeCareBedNum',
			type: 'input',
			append: '张',
			isNum: true,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 8,
		},

		{
			label: '全托床位收费标准',
			prop: 'trusteeshipStandard',
			type: 'text',
			maxlength: '140',
			showWordLimit: true,
			span: 8,
		},
		{
			label: '日托床位数量',
			prop: 'dayCareNumber',
			type: 'input',
			append: '张',
			isNum: true,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 8,
		},
		{
			label: '日托床位收费标准',
			prop: 'dayCareStandard',
			type: 'text',
			maxlength: '140',
			showWordLimit: true,
			span: 8,
		},
		// {
		// 	label: '收费标准说明',
		// 	prop: 'standardDescription',
		// 	type: 'textarea',
		// 	maxlength: '500',
		// 	showWordLimit: true,
		// 	span: 24,
		// },
		// {
		// 	label: '收费方式',
		// 	prop: 'chargeMethod',
		// 	type: 'textarea',
		// 	maxlength: '500',
		// 	showWordLimit: true,
		// 	span: 24,
		// },
		{
			label: '是否采用会员制方式收费',
			prop: 'memberCharge',
			propName: 'memberChargeLabel',
			type: 'remoteSelect',
			api: 'getDictItemList',
			code: 'COMMON_FLAG',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '押金收费标准',
			prop: 'depositStandard',
			type: 'text',
			maxlength: '140',
			showWordLimit: true,
			span: 8,
		},
		// {
		// 	label: '备用金收费标准',
		// 	prop: 'imprestChargeStandard',
		// 	type: 'text',
		// 	maxlength: '140',
		// 	showWordLimit: true,
		// 	span: 8,
		// },
		// {
		// 	label: '完全失能护理费收费标准',
		// 	prop: 'completeChargeStandard',
		// 	type: 'text',
		// 	maxlength: '140',
		// 	showWordLimit: true,
		// 	span: 8,
		// },
		// {
		// 	label: '重度失能护理费收费标准',
		// 	prop: 'heavyChargeStandard',
		// 	type: 'text',
		// 	maxlength: '140',
		// 	showWordLimit: true,
		// 	span: 8,
		// },
		// {
		// 	label: '中度失能护理费收费标准',
		// 	prop: 'moderateChargeStandard',
		// 	type: 'text',
		// 	maxlength: '140',
		// 	showWordLimit: true,
		// 	span: 8,
		// },
		// {
		// 	label: '轻度失能护理费收费标准',
		// 	prop: 'mildChargeStandard',
		// 	type: 'text',
		// 	maxlength: '140',
		// 	showWordLimit: true,
		// 	span: 8,
		// },
		// {
		// 	label: '能力完好护理费收费标准',
		// 	prop: 'fullChargeStandard',
		// 	type: 'text',
		// 	maxlength: '140',
		// 	showWordLimit: true,
		// 	span: 8,
		// },
		// {
		// 	label: '失能护理费收费标准',
		// 	prop: 'loseChargeStandard',
		// 	type: 'text',
		// 	maxlength: '140',
		// 	showWordLimit: true,
		// 	span: 8,
		// },
		// {
		// 	label: '半失能护理费收费标准',
		// 	prop: 'semiLossStandard',
		// 	type: 'text',
		// 	maxlength: '140',
		// 	showWordLimit: true,
		// 	span: 8,
		// },
		// {
		// 	label: '自理护理费收费标准',
		// 	prop: 'selfCareStandard',
		// 	type: 'text',
		// 	maxlength: '140',
		// 	showWordLimit: true,
		// 	span: 8,
		// },
		// {
		// 	label: '伙食费收费标准',
		// 	prop: 'boardChargeStandard',
		// 	type: 'text',
		// 	maxlength: '140',
		// 	showWordLimit: true,
		// 	span: 8,
		// },
		{
			label: '其他收费项目及收费标准',
			prop: 'otherChargeStandard',
			type: 'text',
			maxlength: '140',
			showWordLimit: true,
			span: 8,
		},
		{
			type: 'DividerHtml',
			custome: 'divider',
			position: 'center',
			labelPosition: 'top',
			modelValue: '服务和服务资质信息',
			span: 24,
		},
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			modelValue: '居家服务',
			span: 24,
		},
		{
			label: '是否提供居家上门服务',
			prop: 'homeService',
			type: 'remoteSelect',
			propName: 'homeServiceLabel',
			api: 'getDictItemList',
			code: 'COMMON_FLAG',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 6,
		},
		{
			label: '居家上门服务项目',
			prop: 'homeServiceItem',
			type: 'textarea',
			span: 18,
			changeField: true,
			maxlength: '500',
			showWordLimit: true,
		},

		{
			type: 'DividerHtml',
			modelValue: '社区服务',
			labelPosition: 'top',
			span: 24,
		},
		{
			label: '是否提供社区养老服务',
			prop: 'communityService',
			type: 'remoteSelect',
			propName: 'communityServiceLabel',
			api: 'getDictItemList',
			code: 'COMMON_FLAG',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 6,
		},
		{
			label: '社区养老服务项目',
			prop: 'communityServiceItem',
			type: 'textarea',
			changeField: true,
			maxlength: '500',
			showWordLimit: true,
			span: 18,
		},

		{
			type: 'DividerHtml',
			modelValue: '医养结合',
			labelPosition: 'top',
			span: 24,
		},
		{
			label: '是否开展医疗服务',
			prop: 'medicalService',
			type: 'remoteSelect',
			propName: 'medicalServiceLabel',
			api: 'getDictItemList',
			code: 'COMMON_FLAG',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
		},
		// {
		// 	label: '开展医疗服务方式',
		// 	prop: 'medicalServiceMode',
		// 	propName: 'medicalServiceModeLabel',
		// 	type: 'remoteSelect',
		// 	code: 'MEDICAL_MODE',
		// 	api: 'getDictItemList',
		// 	filterKey: 'value',
		// 	multiple: false,
		// 	changeField: true,
		// 	span: 8,
		// },
		{
			label: '内设医疗机构类型',
			prop: 'medicalOrganizationType',
			propName: 'medicalOrganizationTypeLabel',
			type: 'remoteSelect',
			code: 'MEDICAL_INSTITUTE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
		},
		{
			label: '是否取得医疗机构执业许可证书',
			prop: 'medicalLicense',
			type: 'remoteSelect',
			propName: 'medicalLicenseLabel',
			api: 'getDictItemList',
			code: 'COMMON_FLAG',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
		},
		// {
		// 	label: '医疗机构许可证编号',
		// 	prop: 'medicalLicenseId',
		// 	type: 'text',
		// 	changeField: true,
		// 	maxlength: '50',
		// 	showWordLimit: true,
		// 	span: 8,
		// },
		{
			label: '医疗机构执业许可证书照片',
			prop: 'medicalLicenseImage',
			type: 'upload',
			labelPosition: 'top',
			showFileList: false,
			limit: 1,
			multiple: false,
			changeField: true,
			span: 24,
		},
		{
			label: '医疗机构执业许可证书取得日期',
			prop: 'medicalLicenseDate',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			changeField: true,
			span: 8,
		},
		{
			label: '与医疗机构签约合作类型',
			prop: 'medicalSigningType',
			propName: 'medicalSigningTypeLabel',
			type: 'remoteSelect',
			code: 'MEDICAL_COOPERATE_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
		},
		{
			label: '是否取得医疗保险定点医疗机构资格证书',
			prop: 'isMedicalQualification',
			type: 'remoteSelect',
			propName: 'isMedicalQualificationLabel',
			api: 'getDictItemList',
			code: 'COMMON_FLAG',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
		},
		{
			label: '医疗保险定点医疗机构资格证书照片',
			prop: 'medicalQualificationImage',
			type: 'upload',
			labelPosition: 'top',
			showFileList: false,
			limit: 1,
			multiple: false,
			changeField: true,
			span: 24,
		},
		{
			label: '医疗保险定点医疗机构资格证书取得日期',
			prop: 'medicalQualificationDate',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			changeField: true,
			span: 12,
		},
		{
			label: '纳入医保联网方式',
			prop: 'medicalNetworkingMethod',
			propName: 'medicalNetworkingMethodLabel',
			type: 'remoteSelect',
			code: 'MEDICAL_INSURE_NETWORK_MODE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 12,
		},
		{
			type: 'DividerHtml',
			modelValue: '食品生产',
			labelPosition: 'top',
			span: 24,
		},
		{
			label: '食品生产许可证照片',
			prop: 'foodLicenseImage',
			type: 'upload',
			labelPosition: 'top',
			showFileList: false,
			limit: 1,
			multiple: false,
			changeField: true,
			span: 24,
		},
		{
			label: '是否取得食品生产许可证',
			prop: 'foodLicense',
			type: 'remoteSelect',
			propName: 'foodLicenseLabel',
			api: 'getDictItemList',
			code: 'COMMON_FLAG',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			labelPosition: 'top',
			span: 8,
		},
		{
			label: '食品生产许可证过期日期',
			prop: 'foodLicenseDate',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			changeField: true,
			labelPosition: 'top',
			span: 8,
		},

		//--------------------长护险 ----------------
		{
			type: 'DividerHtml',
			modelValue: '长护险',
			labelPosition: 'top',
			span: 24,
		},
		{
			label: '是否长护险定点机构',
			prop: 'longCare',
			type: 'remoteSelect',
			propName: 'longCareLabel',
			api: 'getDictItemList',
			code: 'COMMON_FLAG',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
		},
		{
			label: '长护险批复时间',
			prop: 'longCareDate',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			changeField: true,
			span: 8,
		},
		//--------------------其他资质 ----------------
		// {
		// 	type: 'DividerHtml',
		// 	modelValue: '其他资质',
		// 	labelPosition: 'top',
		// 	span: 24,
		// },
		// {
		// 	label: '享受政府扶持优惠政策内容',
		// 	prop: 'governmentSupportContent',
		// 	// government_support_content
		// 	// government_support_content
		// 	type: 'textarea',
		// 	maxlength: '500',
		// 	showWordLimit: true,
		// 	span: 24,
		// },
		// {
		// 	label: '是否享受养老服务税费减免',
		// 	prop: 'serviceTax',
		// 	type: 'remoteSelect',
		// 	propName: 'serviceTaxLabel',
		// 	api: 'getDictItemList',
		// 	code: 'COMMON_FLAG',
		// 	filterKey: 'value',
		// 	multiple: false,
		// 	span: 8,
		// },
		// {
		// 	label: '是否投保责任险代码',
		// 	prop: 'liabilityInsurance',
		// 	type: 'remoteSelect',
		// 	propName: 'liabilityInsuranceLabel',
		// 	api: 'getDictItemList',
		// 	code: 'COMMON_FLAG',
		// 	filterKey: 'value',
		// 	multiple: false,
		// 	span: 8,
		// },
	],
}
export const noRecordpart: any = {
	label: '其他信息',
	prop: 'base2',
	inline: false,
	showBtn: false,
	labelPosition: 'top',
	column: [
		{
			label: '是否民用水',
			prop: 'civilWater',
			propName: 'civilWaterLabel',
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '是否民用电',
			prop: 'civilElectricity',
			propName: 'civilElectricityLabel',
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '是否民用气',
			prop: 'civilGas',
			propName: 'civilGasLabel',
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '食品生产能源',
			prop: 'foodProductionEnergy',
			propName: 'foodProductionEnergyLabel',
			type: 'remoteSelect',
			api: 'getDictItemList',
			code: 'ENERGY',
			filterKey: 'value',
			multiple: true,
			changeField: false,
			labelPosition: 'top',
			span: 8,
		},
		//--------------------收住信息 ----------------
		{
			type: 'DividerHtml',
			modelValue: '收住信息',
			labelPosition: 'top',
			span: 24,
		},
		{
			label: '其他收住老人类型说明',
			prop: 'otherHoldType',
			tpey: 'textarea',
			changeField: true,
			showWordLimit: true,
			maxlength: '500',
			span: 24,
		},
		{
			label: '收住老人类型',
			prop: 'holdType',
			propName: 'holdTypeLabel',
			type: 'remoteSelect',
			code: 'OLDMAN_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
		},
		// {
		// 	label: '收住三无老人数量',
		// 	prop: 'holdSanwuNumber',
		// 	type: 'input',
		// 	append: '人',
		// 	isNum: true,
		// 	changeField: true,
		// 	span: 8,
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '收住五保老人数量',
		// 	prop: 'holdInsureNumber',
		// 	type: 'input',
		// 	append: '人',
		// 	isNum: true,
		// 	changeField: true,
		// 	span: 8,
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		{
			label: '收住老人总数量',
			prop: 'holdNumber',
			type: 'input',
			append: '人',
			isNum: true,
			changeField: true,
			span: 8,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		},
		//--------------------工勤人数 ----------------
		{
			type: 'DividerHtml',
			modelValue: '工勤人数',
			span: 24,
			labelPosition: 'top',
		},
		{
			label: '管理岗人员数量',
			prop: 'managementNumber',
			append: '人',
			isNum: true,
			changeField: true,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			type: 'input',
			span: 8,
		},
		{
			label: '技术岗人员数量',
			prop: 'technologyNumber',
			append: '张',
			changeField: true,
			isNum: true,
			type: 'input',
			span: 8,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		},
		// {
		// 	label: '医生数量',
		// 	prop: 'doctorNumber',
		// 	append: '人',
		// 	isNum: true,
		// 	changeField: true,
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// 	type: 'input',
		// 	span: 8,
		// },
		// {
		// 	label: '护士数量',
		// 	prop: 'nurseNumber',
		// 	append: '人',
		// 	isNum: true,
		// 	changeField: true,
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// 	type: 'input',
		// 	span: 8,
		// },
		// {
		// 	label: '其他医技人员数量',
		// 	prop: 'otherMedicalNumber',
		// 	type: 'input',
		// 	append: '人',
		// 	isNum: true,
		// 	changeField: true,
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// 	span: 8,
		// },
		// {
		// 	label: '护理员数量',
		// 	prop: 'careWorkerNumber',
		// 	type: 'input',
		// 	append: '人',
		// 	isNum: true,
		// 	changeField: true,
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// 	span: 8,
		// },
		{
			label: '工勤岗人员数量',
			prop: 'handymanNumber',
			type: 'input',
			append: '人',
			isNum: true,
			changeField: true,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 8,
		},
		//--------------------投资信息 ----------------
		{
			type: 'DividerHtml',
			modelValue: '投资信息',
			labelPosition: 'top',
			span: 24,
		},
		{
			label: '项目总投资额',
			prop: 'totalInvest',
			type: 'input',
			append: '万元',
			isNum: true,
			rules: [{ validator: regularRule.number, message: '请输入正确的金额' }],
			span: 8,
		},
		{
			label: '市政府投资额',
			prop: 'municipalInvest',
			type: 'input',
			append: '万元',
			isNum: true,
			rules: [{ validator: regularRule.number, message: '请输入正确的金额' }],
			span: 8,
		},
		{
			label: '区县政府投资额',
			prop: 'districtInvest',
			type: 'input',
			append: '万元',
			isNum: true,
			rules: [{ validator: regularRule.number, message: '请输入正确的金额' }],
			span: 8,
		},
		{
			label: '街道乡镇投资额',
			prop: 'townshipInvest',
			type: 'input',
			append: '万元',
			isNum: true,
			rules: [{ validator: regularRule.number, message: '请输入正确的金额' }],

			span: 8,
		},
		{
			label: '建设单位投资额',
			prop: 'contractorInvest',
			type: 'input',
			append: '万元',
			isNum: true,
			rules: [{ validator: regularRule.number, message: '请输入正确的金额' }],

			span: 8,
		},
		{
			label: '其他投资额',
			prop: 'otherInvest',
			type: 'input',
			append: '万元',
			isNum: true,
			rules: [{ validator: regularRule.number, message: '请输入正确的金额' }],

			span: 8,
		},
		{
			label: '社会资助额',
			prop: 'societyInvest',
			type: 'input',
			append: '万元',
			isNum: true,
			rules: [{ validator: regularRule.number, message: '请输入正确的金额' }],

			span: 8,
		},
		//--------------------建设成本信息 ----------------
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			modelValue: '建设成本信息',
			span: 24,
		},
		{
			label: '土地购置费',
			prop: 'landAcquisitionAmount',
			type: 'input',
			append: '万元',
			isNum: true,
			rules: [{ validator: regularRule.number, message: '请输入正确的金额' }],

			span: 8,
		},
		{
			label: '土建费',
			prop: 'civilEngineeringAmount',
			type: 'input',
			append: '万元',
			isNum: true,
			rules: [{ validator: regularRule.number, message: '请输入正确的金额' }],

			span: 8,
		},
		{
			label: '房屋购置费',
			prop: 'housePurchaseAmount',
			type: 'input',
			append: '万元',
			isNum: true,
			rules: [{ validator: regularRule.number, message: '请输入正确的金额' }],

			span: 8,
		},
		{
			label: '房屋租赁费',
			prop: 'houseLeaseAmount',
			type: 'input',
			append: '万元',
			isNum: true,
			rules: [{ validator: regularRule.number, message: '请输入正确的金额' }],

			span: 8,
		},
		{
			label: '装修费',
			prop: 'renovationAmount',
			type: 'input',
			append: '万元',
			isNum: true,
			rules: [{ validator: regularRule.number, message: '请输入正确的金额' }],

			span: 8,
		},
		{
			label: '设备购置费',
			prop: 'equipmentPurchaseAmount',
			type: 'input',
			append: '万元',
			isNum: true,
			rules: [{ validator: regularRule.number, message: '请输入正确的金额' }],

			span: 8,
		},
		{
			label: '开办经费',
			prop: 'startAmount',
			type: 'input',
			append: '万元',
			isNum: true,
			rules: [{ validator: regularRule.number, message: '请输入正确的金额' }],

			span: 8,
		},
		{
			label: '其他经费',
			prop: 'otherAmount',
			type: 'input',
			append: '万元',
			isNum: true,
			rules: [{ validator: regularRule.number, message: '请输入正确的金额' }],

			span: 8,
		},
		//--------------------消防验收信息 ----------------
		{
			type: 'DividerHtml',
			modelValue: '消防验收信息',
			labelPosition: 'top',
			span: 24,
		},
		{
			label: '消防部门审验合格日期',
			prop: 'fireDepartmentDate',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			span: 8,
		},
		{
			label: '消防部门审验合格材料',
			prop: 'fireDepartmentMaterial',
			type: 'upload',
			fileType: uploadType.fileMetaType,
			listType: 'text',
			labelPosition: 'top',
			showFileList: true,
			limit: 9,
			multiple: true,
			span: 24,
		},
		// {
		// 	label: '消防部门审验状态',
		// 	prop: 'fireDepartmentState',
		// 	propName: 'fireDepartmentStateLabel',
		// 	type: 'remoteSelect',
		// 	api: 'getDictItemList',
		// 	code: 'FIRE_APPROVAL_STATUS',
		// 	filterKey: 'value',
		// 	multiple: false,
		// 	span: 8,
		// 	rules: [{ message: '请选择消防部门审验状态', required: 'true' }],
		// },

		{
			label: '消防审核验收批准单位名称',
			prop: 'fireDepartmentName',
			type: 'text',
			maxlength: '50',
			showWordLimit: true,
			span: 8,
		},
		//--------------------设施（建设/租赁）情况 ----------------
		{
			type: 'DividerHtml',
			modelValue: '设施（建设/租赁）情况',
			labelPosition: 'top',
			span: 24,
		},
		{
			label: '机构土地性质',
			prop: 'organizationLandNature',
			propName: 'organizationLandNatureLabel',
			type: 'remoteSelect',
			code: 'LAND_PROPERTY',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			labelPosition: 'top',
			rules: [{ message: '请选择机构土地性质', required: 'true' }],
			span: 8,
		},
		{
			label: '是否位于共有建筑',
			prop: 'locatedSharedBuilding',
			propName: 'locatedSharedBuildingLabel',
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		// {
		// 	label: '总绿化面积',
		// 	prop: 'totalGreenArea',
		// 	type: 'input',
		// 	append: '平方米',
		// 	isNum: true,
		// 	labelPosition: 'top',
		// 	rules: [{ validator: regularRule.number, message: '请输入正确的面积数' }],
		// 	span: 8,
		// },
		// {
		// 	label: '休息室面积',
		// 	prop: 'loungeArea',
		// 	type: 'input',
		// 	append: '平方米',
		// 	isNum: true,
		// 	labelPosition: 'top',
		// 	rules: [{ validator: regularRule.number, message: '请输入正确的面积数' }],
		// 	span: 8,
		// },
		// {
		// 	label: '餐厅面积',
		// 	prop: 'restaurantArea',
		// 	type: 'input',
		// 	append: '平方米',
		// 	isNum: true,
		// 	labelPosition: 'top',
		// 	rules: [{ validator: regularRule.number, message: '请输入正确的面积数' }],
		// 	span: 8,
		// },
		// {
		// 	label: '体锻（康复）室面积',
		// 	prop: 'gymArea',
		// 	type: 'input',
		// 	append: '平方米',
		// 	isNum: true,
		// 	labelPosition: 'top',
		// 	rules: [{ validator: regularRule.number, message: '请输入正确的面积数' }],
		// 	span: 8,
		// },
		// {
		// 	label: '活动（阅览）室面积',
		// 	prop: 'readingRoomArea',
		// 	type: 'input',
		// 	append: '平方米',
		// 	isNum: true,
		// 	labelPosition: 'top',
		// 	rules: [{ validator: regularRule.number, message: '请输入正确的面积数' }],
		// 	span: 8,
		// },
		// {
		// 	label: '主要岀入口个数',
		// 	prop: 'exitsNumber',
		// 	type: 'input',
		// 	append: '个',
		// 	isNum: true,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数' }],
		// 	span: 8,
		// },
		// {
		// 	label: '建筑层数',
		// 	prop: 'buildingStorey',
		// 	type: 'input',
		// 	append: '层',
		// 	isNum: true,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的层数' }],
		// 	span: 8,
		// },
		// {
		// 	label: '是否安装电梯',
		// 	prop: 'elevatorInstallation',
		// 	type: 'remoteSelect',
		// 	propName: 'elevatorInstallationLabel',
		// 	api: 'getDictItemList',
		// 	code: 'COMMON_FLAG',
		// 	filterKey: 'value',
		// 	multiple: false,
		// 	labelPosition: 'top',
		// 	rules: [{ message: '请选择是否安装电梯', required: 'true' }],
		// 	span: 8,
		// },
		{
			label: '房屋属性',
			prop: 'propertyProperties',
			propName: 'propertyPropertiesLabel',
			type: 'remoteSelect',
			code: 'HOUSE_PROPERTY',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			labelPosition: 'top',
			rules: [{ message: '请选择房屋属性', required: 'true' }],
			span: 8,
		},
		{
			label: '自有产权证明',
			prop: 'ownershipCertificate',
			type: 'upload',
			fileType: uploadType.fileMetaType,
			listType: 'text',
			labelPosition: 'top',
			showFileList: true,
			limit: 9,
			multiple: true,
			span: 24,
			rules: [{ required: true, message: '请上传自有产权证明' }],
		},
		// {
		// 	label: '房屋权属证明状态',
		// 	prop: 'houseState',
		// 	propName: 'houseStateLabel',
		// 	type: 'remoteSelect',
		// 	code: 'HOUSE_PROVE_STATUS',
		// 	api: 'getDictItemList',
		// 	filterKey: 'value',
		// 	multiple: false,
		// 	labelPosition: 'top',
		// 	rules: [{ message: '请选择房屋权属证明状态', required: 'true' }],
		// 	span: 8,
		// },
		{
			label: '租赁期限',
			prop: 'leaseTerm',
			type: 'input',
			append: '年',
			isNum: true,
			labelPosition: 'top',
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的期限数' }],
			span: 8,
		},
		{
			label: '年租金',
			prop: 'annualRent',
			type: 'input',
			append: '万元',
			isNum: true,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的租金数' }],
			span: 8,
		},

		//--------------------老年用品 ----------------
		{
			type: 'DividerHtml',
			modelValue: '老年用品',
			labelPosition: 'top',
			span: 24,
		},
		{
			label: '',
			type: 'dynamic',
			prop: 'dpSenileProductsPOList',
			span: 24,
			column: [
				{
					label: '产品类型',
					prop: 'productType',
					propName: 'productTypeLabel',
					type: 'remoteSelect',
					code: 'OLDMAN_PRODUCT_TYPE',
					api: 'getDictItemList',
					filterKey: 'value',
					multiple: false,
					width: 300,
				},
				{
					label: '产品名称',
					prop: 'productName',
					type: 'text',
					maxlength: '50',
					showWordLimit: true,
					width: 300,
				},
				{
					label: '产品价格',
					prop: 'productPrice',
					type: 'input',
					append: '元',
					isNum: true,
					rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的价格' }],
					width: 300,
				},
				{
					label: '产品型号',
					prop: 'productModel',
					type: 'text',
					maxlength: '50',
					showWordLimit: true,
					width: 300,
				},
				{
					label: '产品用途',
					prop: 'productUse',
					type: 'textarea',
					maxlength: '500',
					showWordLimit: true,
					width: 300,
				},
				{
					label: '生产厂商',
					prop: 'manufacturer',
					type: 'textarea',
					maxlength: '50',
					showWordLimit: true,
					width: 300,
				},
			],
		},
		//--------------------设施设备 ----------------
		{
			type: 'DividerHtml',
			modelValue: '设施设备',
			labelPosition: 'top',
			span: 24,
		},
		{
			label: '',
			type: 'dynamic',
			prop: 'dpFacilityEquipmentPOList',
			span: 24,
			column: [
				{
					label: '设施设备类型',
					prop: 'facilitiesEquipmentType',
					propName: 'facilitiesEquipmentTypeLabel',
					type: 'remoteSelect',
					code: 'DEVICE_TYPE',
					api: 'getDictItemList',
					filterKey: 'value',
					multiple: false,
				},
				{
					label: '设施设备数量',
					prop: 'facilitiesEquipmentNumber',
					type: 'input',
					append: '个',
					isNum: true,
					rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
				},
			],
		},
	],
}
export const recordPart: any = {
	showBtn: false,
	column: [
		//-------------------- 运营记录 ----------------
		{
			// dpOperateRecordPOList
			type: 'DividerHtml',
			labelPosition: 'top',
			modelValue: '运营记录',
			span: 24,
		},
		{
			label: '',
			// type: 'dynamic',
			prop: 'dpOperateRecordPOList',
			span: 24,
			type: 'dynamicForm',
			tabType: 'form',
			config: {
				inline: false,
				showBtn: false,
				labelPosition: 'top',
				maxHeight: '30rem',
				addBtn: true,
				delBtn: true,
			},
			column: [
				{
					label: '运营单位名称',
					prop: 'organizationName',
					type: 'text',
					maxlength: '50',
					showWordLimit: true,
					span: 8,
				},
				{
					label: '运营单位统一社会信用代码',
					prop: 'creditCode',
					type: 'input',
					rules: [{ pattern: regularRule.code, message: '请输入正确的运营单位统一社会信用代码' }],
					span: 8,
				},
				{
					label: '合同签订开始日期',
					prop: 'startDate',
					type: 'date',
					format: 'YYYY年MM月DD日',
					valueFormat: 'YYYY-MM-DD',
					span: 8,
				},
				{
					label: '合同签订结束日期',
					prop: 'finishDate',
					type: 'date',
					format: 'YYYY年MM月DD日',
					valueFormat: 'YYYY-MM-DD',
					span: 8,
				},
				{
					label: '运营单位联系人姓名',
					prop: 'name',
					type: 'text',
					maxlength: '20',
					showWordLimit: true,
					span: 8,
				},
				{
					label: '合同运营内容',
					prop: 'operateContent',
					type: 'textarea',
					maxlength: '500',
					showWordLimit: true,
					span: 24,
				},
				{
					label: '合同',
					prop: 'contract',
					type: 'upload',
					fileType: uploadType.fileMetaType,
					listType: 'text',
					showFileList: true,
					limit: 9,
					multiple: true,
					span: 24,
				},
			],
		},
	],
}
export const OtherFormConfig = {
	label: '其他信息',
	prop: 'base2',
	inline: false,
	showBtn: false,
	labelPosition: 'left',
	column: [...noRecordpart.column, ...recordPart.column],
}
export const tabFormConfig = {
	inline: false,
	showBtn: true,
	labelPosition: 'right',
	column: [],
	group: [
		{
			label: '基础信息',
			prop: 'base0',
			...BaseFormConfig,
		},
		{
			label: '扩展信息',
			prop: 'base1',
			...ExtendFormConfig,
		},
		{
			label: '其他信息',
			prop: 'base2',
			...OtherFormConfig,
		},
	],
}

export const tableConfig = {
	stripe: true,
	border: true,
	maxHeight: '80vh',
	columns: [
		{type:'selection', flexible:true,fixed:'left',reserveSelection:true},
		{
			label: '所属区域',
			prop: 'tableAreaName',
			width: 200,
		},
		{ label: '设施名称', prop: 'soleValue' },
		// { label: '设施名称', prop: 'name' },
		{ label: '运营单位', prop: 'unitName' },
		{ label: '负责人', prop: 'personName' },
		{ label: '负责人联系方式', prop: 'personTelephone', plusXing: '5,2' },
		{
			label: '设施类型',
			prop: 'typeLabel',
		},
		{
			label: '设施评定等级',
			prop: 'standardLabel',
		},
		{
			label: '营业状态',
			prop: 'stateLabel',
		},
		{ label: '入库时间', prop: 'createTime' },
		{
			label: '上链状态',
			prop: 'onBlockchainFlag',
			api: 'geiDictItemList',
			type: 'remoteSelect',
			code: 'BLOCK_CHAIN_STATUS',
			tipProp: 'onBlockchainTime',
			tipLabel: '上链时间',
		},
		{
			label: '操作',
			prop: 'menu',
			width: 200,
			fixed: 'right',
		},
	],
}

export const detailConfig = {
	inline: false,
	labelPosition: 'left',
	labelWidth: '140px',
	column: [
		{
			prop: 'doorHead',
			span: 4,
			custome: 'carousel',
			labelPosition: 'top',
			width: '376px',
			props: ['doorHead'],
			style: {
				minWidth: '376px',
				height: '300px',
				borderRadius: '20px 0',
				padding: '10px',
			},
			children: [
				{
					type: 'DividerHtml',
					modelValue: '基本信息',
					position: 'center',
					labelPosition: 'top',
					span: 24,
				},
				{
					label: '设施名称',
					prop: 'soleValue',
					type: 'text',
					span: 12,
				},
				{
					label: '设施评定等级',
					prop: 'standard',
					propName: 'standardLabel',
					type: 'remoteSelect',
					code: 'ORG_LEVEL',
					api: 'getDictItemList',
					filterKey: 'value',
					multiple: false,
					span: 12,
				},
				{
					label: '等级评定日期',
					prop: 'standardTime',
					span: 12,
				},

				{
					label: '联系人',
					prop: 'personName',
					type: 'text',
					span: 12,
				},
				{ label: '负责人联系方式', prop: 'personTelephone', span: 12 },
				{ label: '负责人证件类型', prop: 'personCertificateTypeLabel', span: 12 },
				{ label: '负责人证件证号', prop: 'personIdCard', span: 12 },
				{ label: '负责人学历', prop: 'personEducationLabel', span: 12 },
			],
		},
		{
			label: '设施类型',
			prop: 'typeLabel',
			tagType: 'success',
			custome: 'tag',
			span: 8,
		},
		{
			label: '日常配送助餐点',
			prop: 'dailyDeliveryOfFoodAid',
			type: 'select',
			span: 8,
			multiple: true,
			allowCreate: true,
			filterable: true,
			changeField: false,
			noDataText: '请输入日常配送助餐点名称',
		},
		{
			label: '当前运营单位',
			prop: 'unitName',
			span: 8,
		},
		{
			label: '社会力量运营',
			prop: 'societyOperationLabel',
			tagType: 'success',
			span: 8,
		},
		// {
		// 	label: '大类',
		// 	prop: 'largeCategoryLabel',
		// 	tagType: 'success',
		// 	custome: 'tag',
		// 	span: 8,
		// },

		{
			label: '场所性质',
			tagType: 'success',
			prop: 'propertyLabel',
			custome: 'tag',
			span: 8,
		},
		{
			label: '兴办主体',
			prop: 'subjectLabel',
			tagType: 'success',
			custome: 'tag',
			span: 8,
		},
		{
			label: '场所位置类型',
			prop: 'positionTypeLabel',
			tagType: 'success',
			custome: 'tag',
			span: 8,
		},
		{
			label: '所属区域',
			prop: 'areas_name',
			span: 8,
		},
		{
			label: '设施地址',
			prop: 'address',
			span: 8,
		},

		{ label: '服务范围', prop: 'serviceScope', span: 8 },
		{
			label: '施工状态',
			prop: 'constructionStatus',
			propName: 'constructionStatusLabel',
			custome: 'tag',
			code: 'CONSTRUCTION_STATUS',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{ label: '营业时间', prop: 'stateTime', span: 8 },
		{ label: '建筑面积(平方米)', prop: 'floorArea', span: 8 },
		{ label: '占地面积(平方米)', prop: 'coverArea', span: 8 },
		{ label: '图片介绍', prop: 'pictureIntroduction', custome: 'file', span: 24 },
		{ label: '文字介绍', prop: 'introduce', span: 24 },
		{ label: '备 注', prop: 'note', span: 8 },
		{ label: '备案日期', prop: 'recordFilingDate', span: 8 },
		{ label: '备案单位', prop: 'filingUnit', span: 8 },
		{ label: '备案材料', prop: 'filingMaterials', custome: 'file', span: 24 },
	],
	customeHeader: {
		type: 'CardOne',
		title: 'soleValue',
		avatar: 'doorHead',
		tipList: [{ prop: 'stateLabel', type: 'tip-success', label: '营业状态' }],
		tagList: [{ prop: 'creditCode', type: 'success', label: '统一社会信用代码' }],
		menuBtn: [
			
		],
	},
}


export const baseConfig = {
	pageName: '养老服务设施管理',
	dictcodes: [
		'BLOCK_CHAIN_STATUS',
		'BUSINESS_STATUS ',
		'EDUCATION',
		'FACILITY_TYPE',
		'FACILITY_LOCATION_TYPE',
		'FACILITIES_ESTABLISHMENT_MAINBODY',
		'FACILITIES_LOCATION_QUALITY',
		'ORG_TYPE',
		'ORG_LEVEL',
		'ORG_OPERATE_STATUS',
		'ID_CARD_TYPE',
		'LEGAL_PROPERTY',
		'MEDICAL_MODE',
		'MEDICAL_INSTITUTE',
		'MEDICAL_COOPERATE_TYPE',
		'MEDICAL_INSURE_NETWORK_MODE',
		'MEDICAL_INSURE_LEVEL',
		'MEDICAL_INSURE_PROPERTY',
		'SERVICE_ITEM_TYPE',
		'NURSE_LEVEL',
		'OLDMAN_TYPE',
		'LAND_PROPERTY',
		'HOUSE_PROPERTY',
		'HOUSE_PROVE_STATUS',
		'OLDMAN_PRODUCT_TYPE',
		'DEVICE_TYPE',
		'FACILITY_BROAD',
		'COMMON_FLAG',
		'FIRE_APPROVAL_STATUS',
		'CONSTRUCTION_STATUS',
	],
	rowKey: 'id',
	addLabel: '采集数据',
	tipLabel: 'soleValue',

	api: {
		index: 'dpServiceFacility_page',
		export: 'dpServiceFacility_exportAll',
	},
	auth: {
		index: 'view_dpServiceFacility_page',
		detail: 'view_dpServiceFacility_view',
	},
	menuBtn: [
		{
			icon: 'editor',
			label: '查看档案',
			type: 'primary',
			operate: 'Archives',
			auth: 'view_dpServiceFacility_view',
			text: true,
			show: true,
		},
	],
	saveFormate: async (form) => {
		return new Promise((resolve, reject) => {
			resolve(form)
		})
	},
	dialogConfig: {
		width: '65%',
		// fullscreen: true
	},

	searchConfig: {
		inline: true,
		showBtn: true,
		labelPosition: 'left',
		column: [
			{
				label: '统一信用代码',
				prop: 'creditCode',
				type: 'input',
				span: 6,
			},
			{
				label: '所属区域',
				prop: 'crAreas',
				type: 'AplidAreaSelect',
				span: 6,
			},
			{
				label: '设施名称',
				prop: 'soleValue',
				span: 6,
			},
			{
				label: '联系人',
				prop: 'personName',
				type: 'input',
				span: 6,
			},
			{
				label: '联系方式',
				prop: 'personTelephone',
				type: 'input',
				span: 6,
			},
			{
				label: '运营单位',
				prop: 'unitName',
				type: 'input',
				span: 6,
			},
			{
				label: '设施类型',
				prop: 'type',
				type: 'remoteSelect',
				span: 6,
				code: 'FACILITY_TYPE',
				api: 'getDictItemList',
				filterKey: 'value',
				multiple: false,
			},
			{
				label: '设施等级',
				prop: 'standard',
				type: 'remoteSelect',
				api: 'getDictItemList',
				code: 'ORG_LEVEL',
				filterKey: 'value',
				multiple: false,
				span: 6,
			},
			{
				label: '营业状态',
				prop: 'state',
				propName: 'stateLabel',
				type: 'remoteSelect',
				code: 'BUSINESS_STATUS',
				api: 'getDictItemList',
				filterKey: 'value',
				multiple: false,
				changeField: true,
				span: 6,
			},
		],
	},
	tableConfig,
	detailConfig,
	beforeOnLoadFormate: async (params) => {
		const areaName: any = getAreaObj(params.crAreas)
		return Promise.resolve({
			...params,
			...areaName,
			crAreas: undefined, // 户籍区域
		})
	},
	onLoadFormate: async (arr) => {
		const tableData = arr.map((item) => {
			const areas_name = getAreaObj(item, '')
			return {
				...item,
				areas_name,
				tableAreaName: [item.areaName, item.streetName, item.communityName].filter(Boolean).join(''),
			}
		})
		return Promise.resolve(Object.freeze(tableData))
	},
}
